Skip to content

Automated Testing: Add media review routing rules - #87425

Merged
ramonjd merged 3 commits into
trunkfrom
add/media-editor-review-routing
Nov 26, 2026
Merged

ramonjd merged 3 commits into
trunkfrom
add/media-editor-review-routing

Conversation

@ramonjd

@ramonjd ramonjd commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What?

Adds two review routing rules that request review from @andrewserong and me:

  • .github/review-routing/media-editor.md: pull requests that change how the media editor looks or behaves.
  • .github/review-routing/media-blocks.md: pull requests that change how a block that shows or picks media looks or behaves, such as Image, Gallery, Cover or Media & Text.

Why?

The media editor has no CODEOWNERS entry, so media editor pull requests reach us only when someone tags us. A routing rule can also skip changes that touch the media editor packages without changing behaviour, such as a dependency update.

The scope is narrow on purpose. media-editor covers the media editor and the image editing canvas (@wordpress/media-editor, @wordpress/image-editor, the deprecated @wordpress/image-cropper and routes/media-editor). media-blocks covers block code in packages/block-library only, and says to answer no for the media editor, the media modal and media upload, so the two rules do not overlap. Upload and client-side media processing are left out for now.

Scores from jev-1.14.0, run locally. A rule asks for review at 0.7 or above (in bold).

PR Change media-editor media-blocks Review asked by
#86490 Media editor placeholder 0.96 0.13 media-editor
#86349 Media editor route delete 0.96 0.18 media-editor
#85891 Media editor History menu 0.97 0.23 media-editor
#87326 MediaEdit in media-utils 0.78 0.27 media-editor
#87374 Gallery multi-select 0.13 0.89 media-blocks
#86955 Image transform support 0.12 0.95 media-blocks
#84360 Gallery viewport columns 0.07 0.93 media-blocks
#85779 Image size reset in Row/Stack 0.13 0.93 media-blocks
#86170 Media icons in block inspector 0.11 0.96 media-blocks
#86457 Media modal shows attachment fields 0.16 0.20 No one
#86542 PHP isolation header 0.25 0.26 No one
#86147 buildModifiers refactor 0.18 0.20 No one
#86560 Query block selects 0.07 0.08 No one
#86619 Navigation overlay select 0.06 0.12 No one

Testing Instructions

The workflow runs on pull_request_target, which reads the rules from trunk, so the rules only take effect after merge.

  1. Run a dry run, which needs no credentials, and check that the media-blocks and media-editor questions are listed after the design system questions:
    npm run --workspace @wordpress/review-routing-tools route -- --pr 86490 --dry-run
  2. With decision API credentials set (see tools/review-routing/README.md), run the same command without --dry-run and check that media-editor requests review. Run it for Gallery: In a multiselection, hide controls that are unsupported #87374 and check that media-blocks requests review.

Requests review from ramonjd and andrewserong on pull requests that change how the media editor looks or behaves.
@ramonjd
ramonjd requested a review from aduth as a code owner November 25, 2026 23:48
@ramonjd ramonjd added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground Preview in Storybook

🎉 Props

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Updated as activity occurs, without notifying anyone named here. Add the props-bot label to refresh.

@ramonjd
ramonjd requested a review from andrewserong November 25, 2026 23:49

@andrewserong andrewserong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to try to me, and happy to be added as a reviewer on anything media editor related!

Comment thread .github/review-routing/media-editor.md Resolved
Removes the media modal and media block exclusion from the media editor rule, and adds a media blocks rule for the same reviewers.
Without this, the rule also matched media editor, media modal and media upload changes.
@ramonjd ramonjd changed the title Automated Testing: Add media editor review routing rule Automated Testing: Add media review routing rules Nov 26, 2026
reviewer: [ramonjd, andrewserong]
---

Does this change how a block that shows or picks media looks or behaves for the people who use it? This includes choosing, uploading, replacing, cropping or editing an image, video or audio file from the block, and how the block displays that media. Such blocks include Image, Gallery, Cover, Media & Text, Video, Audio, File, Post Featured Image, Site Logo and Playlist, and the shared media controls in `packages/block-library/src/utils`. Only changes to block code in `packages/block-library` count, not changes to the media editor, the media modal or media upload. Answer no when what people see and do stays the same, such as for a dependency update, a type change or a test change that keeps the same runtime behavior.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left Playlist in here just in case it touches uploads

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good 👍
And if it winds up being too noisy, we can always pare it back in follow-ups.

@ramonjd
ramonjd merged commit 4d73e4b into trunk Nov 26, 2026
75 checks passed
@ramonjd
ramonjd deleted the add/media-editor-review-routing branch November 26, 2026 01:40
@github-actions github-actions Bot added this to the Gutenberg 24.6 milestone Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants